package cc.linker.steplink.crm.merchanth5.dao.acs;

import cc.linker.steplink.crm.merchanth5.pojo.WithdrawTaskPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * @Author: CKQ
 * @DateTime: 2020/5/26 9:11
 * @Description: TODO
 */
public interface WithdrawTaskDao {

    //获取等待执行的提现列表
    List<WithdrawTaskPo> getAwaitWithdrawList();

    //添加提现任务
    Integer addWithdrawTask(WithdrawTaskPo withdrawTaskPo);

    //编辑提现任务状态
    Integer updateWithdrawTaskStatus(@Param("withdrawId") String withdrawId, @Param("status") Integer status);

    //编辑提现任务状态
    Integer updateWithdrawTaskStatusByCode(@Param("withdrawCode") String withdrawCode, @Param("status") Integer status);

    Integer updateWithDrawTransferStatus(@Param("withDrawId") String withDrawId, @Param("isServiceTransfer") Integer isServiceTransfer, @Param( "isUserTransfer") Integer isUserTransfer);
}
